// remove_copy example
#include <iostream>
#include <algorithm>
#include <vector>
using namespace std;

int main40 () {
	int myints[] = {10,20,30,30,20,10,10,20};          // 10 20 30 30 20 10 10 20
	vector<int> myvector (8);
	vector<int>::iterator it;

	remove_copy (myints,myints+8,myvector.begin(),20); // 10 30 30 10 10 0 0 0

	cout << "myvector contains:";
	for (it=myvector.begin(); it!=myvector.end(); ++it)
		cout << " " << *it;

	cout << endl;

	return 0;
}
